<?php
/**
 * Created by PhpStorm.
 * User: zhaojia
 * Date: 15-9-2
 * Time: 下午5:34
 */
namespace Common\Model;
use Think\Model\ViewModel;

class ArticleTagViewModel extends ViewModel{

    public $viewFields=array(
        'Article'=>array('title','attr','sendtime','editime'),
        'Category' => array('cid'=>'cname','_on'=>'Article.category_cid=Category.cid'),
//        'Tag'=>array('cid'=>'cid','on_'=>'ArticleTag.category_cid=Category.cid'),
    );

    public function get_data(){

        $data=$this->select();

        return $data;
    }

}